package com.wpc.smspringmvc.dao;

import java.util.List;
import java.util.Map;

import com.wpc.smspringmvc.model.User;

/**
 * 数据访问层
 * 
 * @author wpc
 *
 */
public interface UserMapper {

	/**
	 * 增加用户
	 * 
	 * @param user
	 */
	public int addUser(User user) throws Exception;
	
	/**
	 * 编辑用户信息
	 * 
	 * @param user
	 */
	public void editorUser(User user) throws Exception;
	
	/**
	 * 删除用户
	 * 
	 * @param user
	 */
	public void deleteUser(User user) throws Exception;
	
	/**
	 * 根据编号查询用户
	 * 
	 * @param user
	 */
	public User getUserById(User user) throws Exception;
	
	/**
	 * 查询用户
	 * 
	 * @param user
	 */
	public List<Object> getUsers(Map<String,Object> user) throws Exception;
	
	/**
	 * 查询当次查询用户总数量
	 * 
	 * @param user
	 */
	public Integer getUsersTotal(Map<String,Object> user) throws Exception;
}
